import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-04-19
 * Time: 0:00
 */
public class IOdemo9 {
    public static void main(String[] args) {
        try (Writer writer = new FileWriter("test.txt")) {
            writer.write("hello world!");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
